package creational.builder;

public abstract class Builder {

    protected Car car;
    protected Builder(Car c){
        this.car = c;
    }

    public abstract void build();

    protected void buildChassis(){
        System.out.println(car.getBrand()+"开始安装底盘");
    }

    protected void buildBody(){
        System.out.println(car.getBrand()+"开始组装车身");
    }

    protected void buildGlass(){
        System.out.println(car.getBrand()+"开始安装玻璃");
    }

}
